import axios from '@/utils/request'

// 获取员工简单列表
export const getplo = () => {
  return axios({
    url: '/sys/user/simple'
  })
}

// 获取员工详细列表
export function getEmployeeList(params) {
  return axios({
    url: '/sys/user',
    params
  })
}

// 批量添加员工
export const impors = (data) => {
  return axios({
    method: 'post',
    url: 'sys/user/batch',
    data
  })
}
// 开除员工
export const delets = (id) => {
  return axios({
    url: `/sys/user/${id}`,
    method: 'delete'
  })
}
// 添加员工
export const addpro = (data) => {
  return axios({
    url: '/sys/user',
    method: 'post',
    data
  })
}
